#ifndef LOGIN_H
#define LOGIN_H

#include <QDialog>

namespace Ui {
class login;
}

class login : public QDialog
{
    Q_OBJECT

public:
    explicit login(QWidget *parent = 0);
    ~login();

private slots:
    void on_loginPushButton_clicked();
    void on_cancelPushButton_clicked();
    void on_passModeBtn_clicked();
    void on_minBtn_clicked();
    void on_closeBtn_clicked();

private:
    Ui::login *ui;
    void initStyle();
    void setStyle(const QString &styleName);
    bool btnPassMode;
    bool mousePressed;
    bool max;
    QPoint mousePoint;

protected:
    // 为窗口拖动重写的鼠标移动事件
    void mousePressEvent(QMouseEvent *e);
    void mouseMoveEvent(QMouseEvent *e);
    void mouseReleaseEvent(QMouseEvent *e);
};

#endif // LOGIN_H
